package daobeauty.interceptor.invoke.parser.operator;

import java.util.List;

import org.hibernate.criterion.Criterion;

import daobeauty.util.Stack;

/**
 * A node of a parsed query, which can produce criterions
 * 
 * @author M.Serhat Cinar
 *
 */
public interface Operator {
	public int getAmountArguments();
	public int getTotalAmountArguments();
	public String toTotalString();
	public Criterion createCriterion(Stack argumentStack);
	public int hashCode();
	public boolean equals(Object o);
	public String toHqlQuery(Stack argumentStack, List usedArguments);
}
